#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>

void jjcc(int x)
{
	int y = 0;
	int n = 0;
	for (n = 1; n <= x; n++)
	{
		for (y = 1; y <= n; y++)
		{
			printf("%d*%d=%d ", y, n, n * y);
		}
		printf("\n");
	}
}

int main()
{
	int i = 0;
	scanf("%d", &i);
	jjcc(i);
	return 0;
}